package cn.lovecyy.mockjson.plugins;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * BeanCalculatorImpl
 *
 * @author Yakir
 */
@Service
public class BeanCalculatorImpl implements Calculator {

	@Autowired
	CoreCalculator coreCalculator;

	@Override
	public int add(int a, int b) {
		return coreCalculator.add(a, b);
	}

	@Override
	public int mul(int a, int b) {
		return coreCalculator.mul(a, b);
	}

}
